import Vue from "vue";
import Vuex from "vuex";
//引入小仓库
import search from "./search";
import home from "./home";
import detail from "./detail";
import shopCart from "./shopCart";
import user from "./user";
import trade from "./trade";
Vue.use(Vuex);
export default new Vuex.Store({
  //实现Vuex仓库模块化开发管理仓库
  modules: {
    home,
    search,
    detail,
    shopCart,
    user,
    trade,
  },
});
